package service;

import dao.userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

@Service
public class DeleteUserService {
    @Autowired
    private userMapper userMapper;

    public boolean deleteUser(Integer userId){
        int i = userMapper.deleteByPrimaryKey(userId);
        if(i > 0){
            return true;
        }
        return false;
    }
}
